from django.contrib import admin
from django.urls import include, path
from django.views.generic import RedirectView

urlpatterns = [
    path('', RedirectView.as_view(url='/polls/'), name='index'),  # 根路径重定向到 /polls/
    path('polls/', include('polls.urls')),  # 包含 polls 应用的 URL
    path('admin/', admin.site.urls),  # 管理界面 URL
]